﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ACGN.Core.Models;

namespace ACGN.EFCore.Infrastructure
{
    public class AppDbContext:DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options):base(options)
        {

        }
        public DbSet<Login> Logins { get; set; }
        public DbSet<Carousel> Carousels { get; set; }
        public DbSet<Introduce> Introduces { get; set; }
        public DbSet<LeaveMessage> LeaveMessages { get; set; }
        public DbSet<Newsflash> Newsflashes { get; set; }
        public DbSet<NfType> NfTypes { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<ProPicture> ProPictures { get; set; }
        public DbSet<ProType> ProTypes { get; set; }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Seed();
        }
    }
}
